home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Shareware Grab Bag
/
Shareware Grab Bag.iso
/
090
/
vol7n8.arc
/
WARMBOOT.BAS
< prev
Wrap
BASIC Source File
|
1988-04-26
|
980b
|
22 lines
10 ' Machine language warm reboot procedure
20 DEFINT A-Z: P=0: I=0: J=0: DIM ARRAY(7)
30 DATA &HB8 :REM This is the hex code
40 DATA &H40 :REM for the warm reboot.
50 DATA &H00 :REM It first goes to the
60 DATA &H8E :REM memory address 0040
70 DATA &HD8 :REM and places 1234 (hex)
80 DATA &HC7 :REM into memory. Then it
90 DATA &H06 :REM branches to FFFF:0000,
100 DATA &H72 :REM the address where the
110 DATA &H00 :REM CPU begins to execute
120 DATA &H34 :REM instructions after a
130 DATA &H12 :REM power on. From here
140 DATA &HEA :REM the PC's BIOS jumps
150 DATA &H00 :REM to the start of its
160 DATA &H00 :REM diagnostic routines.
170 DATA &HFF
180 DATA &HFF
190 REM
200 P=VARPTR(ARRAY(0)): FOR I=0 TO 15: READ J: POKE(P+I), J: NEXT
210 SUBRT=VARPTR(ARRAY(0)): CALL SUBRT